package org.skyfree.ghyll.ui.part;

import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.ISelectionChangedListener;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IEditorSite;

public abstract class SelectableEditorPage 
{
	ISelectionChangedListener selectionChangedListener;
	IEditorSite editorSite;
	IEditorInput editorInput;
	
	public boolean enable()
	{
		return true;
	}
	
	abstract public void createPartControl(Composite parent);

	public void init(IEditorSite editorSite, IEditorInput editorInput, ISelectionChangedListener selectionChangedListener) 
	{
		this.editorSite = editorSite;
		this.editorInput = editorInput;
		this.selectionChangedListener = selectionChangedListener;
	}
	
	public void setSelection(ISelection selection)
	{
		
	}
}
